package com.xiangyang.controller;

import com.xiangyang.entity.dto.Result;
import com.xiangyang.entity.vo.OperLogLikeAndPage;
import com.xiangyang.service.ISelectInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/selectinfo")
@CrossOrigin
public class SelectInfoController {
    @Autowired
    private ISelectInfoService selectInfoService;
    @GetMapping("/DepartmentName")
    public Result selectInfo(){
        return selectInfoService.getAllDepartmentName();
    }
    @PostMapping("/operlog")
    public Result selectoperlogInfo(@RequestBody OperLogLikeAndPage operLog){
        return selectInfoService.selectoperlogInfo(operLog);
    }
    @DeleteMapping("/deleteOperLog")
    public Result deleteOperLog(){
        return selectInfoService.deleteOperLog();
    }
}
